<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::on_nurbs::SparseMat类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1on__nurbs_1_1_sparse_mat.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1on__nurbs_1_1_sparse_mat-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::on_nurbs::SparseMat类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Sparse matrix implementation.  
 <a href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="sparse__mat_8h_source.html">sparse_mat.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad80b4d0ccdd54081d98446dbe8aa0771"><td class="memItemLeft" align="right" valign="top"><a id="ad80b4d0ccdd54081d98446dbe8aa0771"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#ad80b4d0ccdd54081d98446dbe8aa0771">SparseMat</a> ()</td></tr>
<tr class="memdesc:ad80b4d0ccdd54081d98446dbe8aa0771"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor clearing memory of matrix (=set to zero) <br /></td></tr>
<tr class="separator:ad80b4d0ccdd54081d98446dbe8aa0771"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e442c5f64f5f49f5c93bc4eb1e30fd2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a5e442c5f64f5f49f5c93bc4eb1e30fd2">get</a> (std::vector&lt; int &gt; &amp;i, std::vector&lt; int &gt; &amp;j, std::vector&lt; double &gt; &amp;v)</td></tr>
<tr class="memdesc:a5e442c5f64f5f49f5c93bc4eb1e30fd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a set of values defined by index vectors  <a href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a5e442c5f64f5f49f5c93bc4eb1e30fd2">更多...</a><br /></td></tr>
<tr class="separator:a5e442c5f64f5f49f5c93bc4eb1e30fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37b205af171bbc84d657593deb8b87d5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a37b205af171bbc84d657593deb8b87d5">get</a> (int i, int j)</td></tr>
<tr class="memdesc:a37b205af171bbc84d657593deb8b87d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get matrix values at index pair (i,j)  <a href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a37b205af171bbc84d657593deb8b87d5">更多...</a><br /></td></tr>
<tr class="separator:a37b205af171bbc84d657593deb8b87d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a110c7c0ef5689b50457101506e894437"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a110c7c0ef5689b50457101506e894437">set</a> (int i, int j, double v)</td></tr>
<tr class="memdesc:a110c7c0ef5689b50457101506e894437"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set matrix values at index pair (i,j)  <a href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a110c7c0ef5689b50457101506e894437">更多...</a><br /></td></tr>
<tr class="separator:a110c7c0ef5689b50457101506e894437"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc94f63d47b9d4775b3ceb5f47a23780"><td class="memItemLeft" align="right" valign="top"><a id="adc94f63d47b9d4775b3ceb5f47a23780"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#adc94f63d47b9d4775b3ceb5f47a23780">deleteRow</a> (int i)</td></tr>
<tr class="memdesc:adc94f63d47b9d4775b3ceb5f47a23780"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete row at index i (= set to zero) <br /></td></tr>
<tr class="separator:adc94f63d47b9d4775b3ceb5f47a23780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cead20b0a4a1dade47ff545997528d1"><td class="memItemLeft" align="right" valign="top"><a id="a7cead20b0a4a1dade47ff545997528d1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a7cead20b0a4a1dade47ff545997528d1">deleteColumn</a> (int j)</td></tr>
<tr class="memdesc:a7cead20b0a4a1dade47ff545997528d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete column at index j (= set to zero) <br /></td></tr>
<tr class="separator:a7cead20b0a4a1dade47ff545997528d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ed1a5d8d3cb4e68418813d9fc7d606f"><td class="memItemLeft" align="right" valign="top"><a id="a1ed1a5d8d3cb4e68418813d9fc7d606f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a1ed1a5d8d3cb4e68418813d9fc7d606f">clear</a> ()</td></tr>
<tr class="memdesc:a1ed1a5d8d3cb4e68418813d9fc7d606f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear memory of matrix (=set to zero) <br /></td></tr>
<tr class="separator:a1ed1a5d8d3cb4e68418813d9fc7d606f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0792f4217cf8bd2d1975a760fc3c6cb4"><td class="memItemLeft" align="right" valign="top"><a id="a0792f4217cf8bd2d1975a760fc3c6cb4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a0792f4217cf8bd2d1975a760fc3c6cb4">size</a> (int &amp;si, int &amp;sj)</td></tr>
<tr class="memdesc:a0792f4217cf8bd2d1975a760fc3c6cb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get size of matrix with respect to last non-zero entries <br /></td></tr>
<tr class="separator:a0792f4217cf8bd2d1975a760fc3c6cb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29393822dc673e8d262bf251234222f3"><td class="memItemLeft" align="right" valign="top"><a id="a29393822dc673e8d262bf251234222f3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#a29393822dc673e8d262bf251234222f3">nonzeros</a> ()</td></tr>
<tr class="memdesc:a29393822dc673e8d262bf251234222f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get number of non-zero entries in matrix <br /></td></tr>
<tr class="separator:a29393822dc673e8d262bf251234222f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac923edc084f492be207484cc4045876"><td class="memItemLeft" align="right" valign="top"><a id="aac923edc084f492be207484cc4045876"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#aac923edc084f492be207484cc4045876">printLong</a> ()</td></tr>
<tr class="memdesc:aac923edc084f492be207484cc4045876"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print all matrix entries with respect to size. <br /></td></tr>
<tr class="separator:aac923edc084f492be207484cc4045876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa434bb3473497ef2ce472a8cfea0e106"><td class="memItemLeft" align="right" valign="top"><a id="aa434bb3473497ef2ce472a8cfea0e106"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html#aa434bb3473497ef2ce472a8cfea0e106">print</a> ()</td></tr>
<tr class="memdesc:aa434bb3473497ef2ce472a8cfea0e106"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print indices and values of non-zero entries. <br /></td></tr>
<tr class="separator:aa434bb3473497ef2ce472a8cfea0e106"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a3dd9de7aab68208f40c696b68a00e1c7"><td class="memItemLeft" align="right" valign="top"><a id="a3dd9de7aab68208f40c696b68a00e1c7"></a>
std::map&lt; int, std::map&lt; int, double &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_mat</b></td></tr>
<tr class="separator:a3dd9de7aab68208f40c696b68a00e1c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Sparse matrix implementation. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a37b205af171bbc84d657593deb8b87d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37b205af171bbc84d657593deb8b87d5">&#9670;&nbsp;</a></span>get() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double pcl::on_nurbs::SparseMat::get </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get matrix values at index pair (i,j) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>row index </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">j</td><td>column index return v matrix value at (i,j) <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5e442c5f64f5f49f5c93bc4eb1e30fd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e442c5f64f5f49f5c93bc4eb1e30fd2">&#9670;&nbsp;</a></span>get() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::on_nurbs::SparseMat::get </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a set of values defined by index vectors </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>vector of row indices </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">j</td><td>vector of column indices </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">v</td><td>vector of matrix entries at (i,j) <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a110c7c0ef5689b50457101506e894437"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a110c7c0ef5689b50457101506e894437">&#9670;&nbsp;</a></span>set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::on_nurbs::SparseMat::set </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set matrix values at index pair (i,j) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>row index </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">j</td><td>column index </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">v</td><td>matrix value at (i,j) <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>surface/include/pcl/surface/on_nurbs/<a class="el" href="sparse__mat_8h_source.html">sparse_mat.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>on_nurbs</b></li><li class="navelem"><a class="el" href="classpcl_1_1on__nurbs_1_1_sparse_mat.html">SparseMat</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
